package com.wfy.common.config;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wxd 532239619@qq.com
 * @ClassName: MybatisConfig
 * @date 2017年5月24日 上午8:55:08
 */
@Configuration
@MapperScan(value = "com.wfy.modules.*.dao.*")
public class MybatisConfig {

    /**
     * 分页插件，自动识别数据库类型
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
